package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @TableName punish_type
 */
@TableName(value ="punish_type")
@Data
public class PunishType implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 惩罚类型名称
     */
    private String punishName;

    /**
     * 积分值
     */
    private Double pointsValue;

    /**
     *
     */
    private String description;

    /**
     *
     */

    private Integer status;

    /**
     * 严重程度(1-轻度,2-中度,3-重度)
     */
    private Integer severity;

    /**
     * 是否为灵活加分规则(1是,0否)
     */
    private Integer isFlexible;

    /**
     * 最小分值(灵活规则使用)
     */
    private BigDecimal minPoints;

    /**
     * 最大分值(灵活规则使用)
     */
    private BigDecimal maxPoints;
    private Integer ruleId;
//    @TableLogic(value = "1",delval = "0")
    private Integer deleted;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
